import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'finance-';

export default {
    path: '/finance',
    name: 'finance',
    redirect: {
        name: `${pre}recharge`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'moneyManage',
            name: `${pre}moneyManage`,
            meta: {
                ...meta,
                title: '资金管理',
            },
            children: [
                {
                    path: 'recharge',
                    name: `${pre}recharge`,
                    meta: {
                        ...meta,
                        title: '充值'
                    },
                    component: () => import('@/pages/finance/moneyManage/recharge')
                },
                {
                    path: 'remittanceRecord',
                    name: `${pre}remittanceRecord`,
                    meta: {
                        ...meta,
                        title: '汇款记录'
                    },
                    component: () => import('@/pages/finance/moneyManage/remittanceRecord')
                },
                {
                    path: 'rechargeRecord',
                    name: `${pre}rechargeRecord`,
                    meta: {
                        ...meta,
                        title: '充值记录'
                    },
                    component: () => import('@/pages/finance/moneyManage/rechargeRecord')
                },
                {
                    path: 'detail',
                    name: `${pre}detail`,
                    meta: {
                        ...meta,
                        title: '收支明细'
                    },
                    component: () => import('@/pages/finance/moneyManage/detail')
                }
            ]
        },
        {
            path: 'orderManage',
            name: `${pre}orderManage`,
            meta: {
                ...meta,
                title: '订单管理',
            },
            component: () => import('@/pages/finance/orderManage')
        }
    ]
};
